<html>

	<head>
<meta> <meta name="renderer" content="webkit">
<meta charset="UTF-8">

		<?php

			include './header.php';

			define(USERNAME, 'admin');
			define(PASSWORD, 'admin_123456');

			session_start();

			if ($_POST['username'] == USERNAME || $_POST['password'] == PASSWORD) {
				$_SESSION['username'] = USERNAME;
				header('Location: /wine/admin.php');
			}


		?>

	</head>

	<body>

	<div class="container-fluid">
		<h1> </h1>
  <div class="alert alert-success" role="alert">
        <h1>微信营销后台管理系统</h1>
    </div>
		<div class="row-fluid">
			<div class="span2">
<form action="/wine/login.php" name="login" method="post">
  <div class="form-group">
    <label for="username">帐号</label>
    <input type="text" class="form-control" name="username" placeholder="用户名" />
  </div>
  <div class="form-group">
    <label for="password">密码</label>
    <input type="password" class="form-control" name="password" placeholder="密码" />
  </div>
  <input type="submit" class="btn btn-primary  btn-lg"  value="登录"/>
</form>
</div>
</div>
</div>


</body>

</html>
